package controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.support.RequestContext;

import javax.servlet.http.HttpServletRequest;

@Controller
public class I18nController {

    @RequestMapping("/i18n")
    public String f(HttpServletRequest request){
        System.out.println("I18nController.f()");


        RequestContext requestContext=new RequestContext(request);

        String d=requestContext.getMessage("d");

        System.out.println("d = " + d);

        return "i18n";
    }
}
